<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Admin/Elements
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: admin_index_hidden_cells.ctp 1473 2010-04-15 14:27:48Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/plugins/admin/views/elements/automate/admin_index_hidden_cells.ctp $
*/


// hidden_cells
echo '<div class="hidden_cells">';

// cell_primary_key
echo '<div class="cell cell_primary_key cell_' . $primary_key . '">' . $row[$model][$primary_key] . '</div>';

// cell_tree_parent_key / cell_tree_left_key / cell_tree_right_key
if (isset($is_tree) && $is_tree) {
	if (isset($tree_parent_key) && array_key_exists($tree_parent_key, $row[$model])) {
		echo '<div class="cell cell_tree_parent_key cell_' . $tree_parent_key . '">' . $row[$model][$tree_parent_key] . '</div>';
	}
	if (isset($tree_left_key) && array_key_exists($tree_left_key, $row[$model])) {
		echo '<div class="cell cell_tree_left_key cell_' . $tree_left_key . '">' . $row[$model][$tree_left_key] . '</div>';
	}
	if (isset($tree_right_key) && array_key_exists($tree_right_key, $row[$model])) {
		echo '<div class="cell cell_tree_right_key cell_' . $tree_right_key . '">' . $row[$model][$tree_right_key] . '</div>';
	}
}

echo '</div>'; // end of hidden_cells


?>